package com.feng.cloud.common.constants;

/**
 * @ClassName SystemConstant
 * @Description 系统常量
 * @Author Better Feng
 * @Date 2019/12/17 15:04
 * @Version 1.0
 **/
public interface SystemConstant {

    /**
     * OAUTH2 令牌类型 https://oauth.net/2/bearer-tokens/
     */
    String OAUTH2_TOKEN_TYPE = "bearer";

    /**
     * 验证码 key前缀
     */
    String CODE_PREFIX = "feng_auth_captcha:";

    /**
     * 客户端详情 key
     */
    String CLIENT_DETAILS_PREFIX = "feng_auth_client_details";

    /**
     * Java默认临时目录
     */
    String JAVA_TEMP_DIR = "java.io.tmpdir";

    /**
     * utf-8
     */
    String UTF8 = "utf-8";

    /**
     * 排序规则：降序
     */
    String ORDER_DESC = "descending";

    /**
     * 排序规则：升序
     */
    String ORDER_ASC = "ascending";

    /**
     * 允许下载的文件类型，根据需求自己添加（小写）
     */
    String[] VALID_FILE_TYPE = {"xlsx", "zip"};

    /**
     * 异步线程池名称
     */
    String ASYNC_POOL = "FengAsyncThreadPool";

    /**
     * 异步线程前缀名称
     */
    String ASYNC_POOL_THREAD_NAME_PREFIX = "Feng_Async_ThreadPool";


    /**
     * 请求来自
     */
    String REQUEST_FROM_HEADER = "RequestFromHeader";
}
